<?php
namespace app\api\route;
use app\api\validate\product\ProductValidate;
use think\facade\Route;
use app\api\middleware\Auth;
Route::group("product", function () {
    //Route::get('detail/:product_id', 'product.Product/detail')->middleware([Auth::class]);
    Route::get('stock', 'product.Product/stock')->middleware([Auth::class]);
    Route::get('price', 'product.Product/getItemPrice')->middleware([Auth::class])->validate(ProductValidate::class, 'price');
})->middleware([Auth::class]);